package com.example.chinese;

import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public class Star_2 extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity2);
        Button bt5=(Button)findViewById(R.id.bt5);
        Button bt6=(Button)findViewById(R.id.bt6);
        bt5.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                SharedPreferences sp=getSharedPreferences("data",MODE_PRIVATE);
                SharedPreferences.Editor editor=sp.edit();
                editor.putString("name3","不交谈抓紧训练:因无人帮助感觉困难而退赛");
                editor.commit();
                Intent intent5=new Intent(Star_2.this,Star_13.class);
                startActivity(intent5);
            }
        });

        bt6.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                SharedPreferences sp=getSharedPreferences("data",MODE_PRIVATE);
                SharedPreferences.Editor editor=sp.edit();
                editor.putString("name3","我是全村的希望，来这学习的：三、分组进入c班" +
                        "，是否与他人交谈 交谈");
                editor.commit();
                Intent intent6=new Intent();
                intent6.setClass(Star_2.this,Star_3.class);
                startActivity(intent6);
            }
        });
    }
}
